import requests

proxy='用户名:密码@ip:端口'

#如果代理需要验证，只需要在前面加上用户名密码，如下所示

# proxy='username:password@124.243.226.18:8888'
proxies={
    'http':'http://'+proxy,
    'https':'https://'+proxy,
}
for i in range(2,254):
    try:
        response=requests.get('http://192.168.198.'+str(i),timeout=3, proxies=proxies)
        if "echarts.min.js" in response.text:
            print(i,response.text)
        else:
            print('not', i)
    except:
        #print("Error",e.args)
        print('error',i)
